﻿cmake_minimum_required(VERSION 3.5)
project(YourOverallProject VERSION 0.1 LANGUAGES CXX)

# 全局设置
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)


if(MSVC)
  add_compile_options(/Zc:__cplusplus)
  add_compile_options(/permissive-)
endif()

# 添加子项目
add_subdirectory(common)
add_subdirectory(client)
add_subdirectory(server)
